package com.qf.limit.commons.r;

import lombok.Getter;

//枚举类
@Getter
public enum Codes {

    SUCC(200,"成功"),
    FAIL(500,"失败"),
    PARAMS_ERROR(409,"参数校验异常"),
    USER_EXISTS(410,"用户已存在"),
    USER_NOT_FOUND(411,"用户不存在"),
    CODE_ERROR(412,"验证码不正确"),
    LOGIN_FILL(413,"密码不正确"),
    TOKEN_ERROR(414,"JWT令牌无效"),
    IS_FIRENDS(415,"ta已经是你的好友"),
    IS_REQUEST(416,"已发送申请，无需再次发送"),
    DATA_ERROR(417,"数据错误");


    private Integer code;
    private String msg;

    Codes(Integer code,String msg){
        this.code=code;
        this.msg=msg;
    }
}
